package com.jic.product.mapper;

import com.jic.product.entity.ProductCalibration;
import com.jic.product.manage.request.ProductCalibrationRequest;
import com.jic.product.manage.response.ProductCalibrationResponse;
import com.jic.product.manage.response.ProductResponse;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品校标表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-05-08 02:52:23
 */
@Mapper
public interface ProductCalibrationMapper {

  long insert(ProductCalibration productCalibration);

  long delete(ProductCalibration productCalibration);

  long update(ProductCalibration productCalibration);

  ProductCalibration queryByPrimaryKey(ProductCalibration productCalibration);

  List<ProductCalibrationResponse> query(ProductCalibration productCalibration);

  Integer queryCount(ProductCalibration productCalibration);

  List<ProductResponse> queryPage(
      @Param("startIndex") int startIndex,
      @Param("limit") int limit,
      @Param("productCalibration") ProductCalibrationRequest productCalibrationRequest);

  long queryPageCount(@Param("productCalibration") ProductCalibrationRequest productCalibrationRequest);
}